package cn.topcodes.tcsf.wechat.domain.entity;

import cn.topcodes.tcsf.admin.commons.domain.IdEntity;
import lombok.Data;

import javax.persistence.Table;

/**
 * 图片素材
 * @author xw
 * @date 2017-12-22 15:04
 */
@Data
@Table(name = "t_wechat_picture")
public class WechatPicture extends IdEntity {

    public static final String FIELD_NAME = "name";

    public static final String FIELD_PIC_URL = "picUrl";

    public static final String FIELD_MEDIA_ID = "mediaId";

    public static final String FIELD_URL = "url";

    public static final String FIELD_WECHAT_MP_ID = "wechatMpId";

    /**
     * 图片名
     */
    private String name;

    /**
     * 微信服务器图片地址
     */
    private String picUrl;

    /**
     * 素材id
     */
    private String mediaId;

    /**
     * 本地服务器图片地址
     */
    private String url;

    /**
     * 公众号id
     */
    private Long wechatMpId;
}
